package mop.exception;

import java.sql.Timestamp;

public class IllegalDeadlineException extends IllegalDateException
{
	
	/**
	 * Initializes an IllegalDeadlineException with the earliest possible deadline
	 * 
	 * @param date
	 *  the earliest possible date
	 *  
	 * @post IllegalDeadlineException instance created
	 * 
	 * @effect Parent constructor called
	 * 	|super(date)
	 */
	public IllegalDeadlineException(Timestamp date)
	{
		super(date);
	}
	

	@Override 
	public String toString()
	{
		
		StringBuffer sb = new StringBuffer();
		sb.append("Given deadline is too early, must be at least: ");
		sb.append(getDate());
		return sb.toString();
		
	}
	
	/**
	 * weird java demand
	 */
	private static final long serialVersionUID = 1L;
	
}